package com.fit.dao.sport;

import java.util.Date;
import java.util.List;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import com.fit.entities.sport.Sport;

public interface SportDAO {

	@CommitAfter
	public boolean save(Sport newSport);

	@CommitAfter
	public boolean delete(Sport sport);

	@CommitAfter
	public boolean update(Sport sport);

	public List<Sport> findAll();

	
	public Sport findByType(String id);

	public Sport findByID(Long type);

	@CommitAfter
	public boolean deleteByID(Long id);
}
